/*
* 路由管理
* */
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import index from '../compnents/index.vue'
import no_found from '../compnents/no_found.vue'
import list from '../compnents/list.vue'
import camera from '../compnents/Camera.vue'
const routes = [
    { path:'/',component: index,children:[
        { path:'/',component: list}
    ]},
    { path:'/camera',component: camera},
    { path:'*',component: no_found}
]

/*实例化*/
export const router = new VueRouter({
    // mode: 'history',//启用html5
    base: __dirname,
    routes: routes
});